import { createBrowserRouter } from "react-router-dom";
import Login from "../views/Login/Login";
import Zhu from "../views/Zhu/Zhu";
import Home from "../views/Home/Home";
import Di from "../views/Di/Di";
import Tong from "../views/Tong/Tong";
import Message from "../views/Message/Message";
import All from "../views/All/All";
import Xiang from "../views/Xiang/Xiang";
import Gou from "../views/Gou/Gou";
import Dingxiang from "../views/Dingxiang/Dingxiang";
import Zhifu from "../views/Zhifu/Zhifu";
import Piao from "../views/Piao/Piao";
import Wo from "../views/Wo/Wo";

const router = createBrowserRouter([
  {
    path: "/",
    element: <Home/>,
  },
  {
    path: "/login",
    element: <Login/>,
  },
  {
    path: "/zhu",
    element: <Zhu/>,
  },
  {
    path: "/di",
    element: <Di/>,
  },
  {
    path: "/tong",
    element: <Tong/>,
  },
  {
    path: "/message",
    element: <Message/>,
  },
  {
    path: "/all",
    element: <All/>,
  },
  {
    path: "/xiang/:id",
    element: <Xiang/>,
  },
  {
    path: "/gou",
    element: <Gou/>,
  },
  {
    path: "/dingxiang",
    element: <Dingxiang/>,
  },
  {
    path: "/zhifu",
    element: <Zhifu/>,
  },
  {
    path: "/piao",
    element: <Piao/>,
  },
  {
    path: "/wo",
    element: <Wo/>,
  },
]);

export default router;
